﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HotelAdd.ascx.cs" Inherits="AdminX_Hotel_HotelAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<div>
    <uc1:Alert ID="MessAlert1" runat="server" />
</div>
<table>
    <tr>
        <td>
            <div>
                <asp:Label ID="lblLanguage" runat="server" Text="Ngôn ngữ" CssClass="text" Font-Bold="true"
                    Width="90px"></asp:Label>
                <asp:DropDownList ID="ddlLanguage" runat="server" AutoPostBack="true" CssClass="boxlonger"
                    OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
                </asp:DropDownList>
            </div>
            <div>
                <asp:Label ID="lblTitle" runat="server" Width="90px" CssClass="text" Text="Tên Hotel"></asp:Label>
                <asp:TextBox ID="txtTitle" runat="server" CssClass="boxlongest"  MaxLength="250"
                    ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
            </div>

            <div>
                <asp:Label ID="lblPriceFrom" runat="server" Width="90px" CssClass="text"></asp:Label>
                <asp:TextBox ID="txtPriceFrom" runat="server" CssClass="boxlongest" MaxLength="150"
                    ValidationGroup="Input"></asp:TextBox></div>
            <div>
                <asp:Label ID="lblPriceFromTo" runat="server" Width="90px" CssClass="text"></asp:Label>
                <asp:TextBox ID="txtPriceFromTo" runat="server" CssClass="boxlongest"  MaxLength="150"
                    ValidationGroup="Input"></asp:TextBox>
            </div>
            <div>
                <asp:Label ID="lblStar" runat="server" Width="90px" CssClass="text"></asp:Label>
                <asp:DropDownList ID="ddlStarRating" runat="server"  CssClass="boxlonger">
                </asp:DropDownList></div>
            <div>
                <asp:Label ID="lblAddress" runat="server" Width="90px" CssClass="text"></asp:Label>
                <asp:TextBox ID="txtAddress" runat="server" CssClass="boxlongest"  MaxLength="150"
                    ValidationGroup="Input"></asp:TextBox>
            </div>
            <div>
                <asp:Label ID="lblCountry" runat="server" Width="90px"  CssClass="text" ></asp:Label>
                <asp:DropDownList ID="ddlCountry" runat="server"  CssClass="boxlonger" 
                        onselectedindexchanged="ddlCountry_SelectedIndexChanged" 
                    AutoPostBack="True">
                </asp:DropDownList></div>
                <div>
            <asp:Label ID="lblRegion" runat="server" Width="90px"  CssClass="text" ></asp:Label>
                <asp:DropDownList ID="ddlRegion" runat="server"   AutoPostBack="true" 
                        CssClass="boxlonger" onselectedindexchanged="ddlRegion_SelectedIndexChanged">
                </asp:DropDownList></div>
                <div>
    <asp:Label ID="lblCity" runat="server" Width="90px"  CssClass="text" ></asp:Label>
    <asp:DropDownList ID="ddlCity" runat="server" CssClass="boxlonger">
    </asp:DropDownList>
    </div>
            <div>
                <asp:Label ID="lblAvatar" runat="server" Width="90px" CssClass="text" 
                    Text="Ảnh đại diện"></asp:Label>
                <input id="iptImage" runat="server" type="file" size="30" class="boxlongest" />
            </div>
        </td>
        <td style="padding-left: 40px; vertical-align: text-top">
            <asp:Image ID="imgImage" runat="server" Height="100px" BorderColor="gray" BorderWidth="1px" />
        </td>
    </tr>
</table>

<br />
<div>
    <asp:Label ID="lblHotelPopular" Width="110px" runat="server" CssClass="text"></asp:Label>
    <asp:Repeater ID="rptHotelPopular" runat="server" onitemdatabound="rptHotelPopular_ItemDataBound">
        <ItemTemplate>
            <asp:Label ID="lblHotelPopularID" runat="server" Visible="false" />
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="chkHotelPopular" runat="server" ForeColor="black" />
        </ItemTemplate>
    </asp:Repeater>
</div>
<br />

<div style="width: 100%">
    <table id="tblGallery" runat="server">
        <tr>
            <td>
                <asp:Label ID="lblDetail" runat="server" CssClass="text" Text="ẢNH CHI TIẾT" Font-Bold="true"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DataList ID="dtlGallery" runat="server" RepeatColumns="5" HorizontalAlign="Left"
                    OnItemDataBound="dtlGallery_ItemDataBound" OnItemCommand="dtlGallery_ItemCommand">
                    <ItemTemplate>
                        <table>
                            <tr>
                                <td>
                                    <asp:Image ID="imgImage" runat="server" Width="160px" Height="100px" BorderColor="gray"
                                        BorderWidth="1px" />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: center">
                                    <asp:LinkButton ID="lnkDelete" runat="server" Text="Xóa" CommandName="Delete" CausesValidation="false"
                                        ForeColor="red"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table>
</div>

<div>
    <asp:Label ID="lblPicture1" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 1"></asp:Label>
    <input id="iptFile1" runat="server" type="file" size="30" class="boxlongest" /><br />
    <asp:Label ID="lblPicture2" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 2"></asp:Label>
    <input id="iptFile2" runat="server" type="file" size="30" class="boxlongest" /><br />
    <asp:Label ID="lblPicture3" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 4"></asp:Label>
    <input id="iptFile3" runat="server" type="file" size="30" class="boxlongest" /><br />
    <asp:Label ID="lblPicture4" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 5"></asp:Label>
    <input id="iptFile4" runat="server" type="file" size="30" class="boxlongest" /><br />
    <asp:Label ID="lblPicture5" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 6"></asp:Label>
    <input id="iptFile5" runat="server" type="file" size="30" class="boxlongest" /><br />
    <span style="color: #cc0000"><em>(*Size tốt nhất 800x500px)<br />
        Xin vui lòng Resize ảnh trước khi upload để tối ưu tốc độ hiển thị. </em></span>
</div>
<br />
<div style="padding: 10px 0px 0px 0px">
        <asp:Label ID="lblInitContent" runat="server" Width="100px" Text="Initial Content"
            CssClass="text"></asp:Label><span style="color: #ff3333">*</span>
</div>
<div style="padding: 0px">
    <asp:TextBox ID="txtInitContent" runat="server" CssClass="textbox_multiline" MaxLength="1999"
        TextMode="MultiLine" ValidationGroup="Input"></asp:TextBox>
</div>
<div style="padding: 10px 0px 0px 0px">
    <b><asp:Label ID="lblContent" Width="110px" runat="server" CssClass="text"></asp:Label><span style="color: #ff3333">*</span></b>
</div>
<div>
    <uc2:Textbox ID="FTBContent" runat="server"></uc2:Textbox>
</div>

<br />
<div>
    <uc2:Textbox ID="FTBVideoLink" runat="server"></uc2:Textbox>
</div>

<div style="padding: 10px 0px 0px 0px">
        <asp:Label ID="lblGoogleMap" runat="server" Width="100px" Text="Google Map" CssClass="text"></asp:Label>
</div>
<div style="padding: 0px">
    <asp:TextBox ID="txtGoogleMap" runat="server" CssClass="textbox_multiline" MaxLength="1999"
        TextMode="MultiLine" ValidationGroup="Input"></asp:TextBox>
</div>


<div style="padding: 5px 0px 5px 0px">
    <asp:CheckBox ID="chkDisplayOrder" runat="server" CssClass="text" Checked="True" />&nbsp;&nbsp;
    <span style="width: 50px">
        <asp:DropDownList ID="ddlPriority" runat="server" CssClass="boxsmall">
        </asp:DropDownList>
    </span>
    <asp:CheckBox ID="chkActive" runat="server" CssClass="text" Checked="true"  Width="120px" />
</div>
<br />
<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Lưu" Width="80px"
    ValidationGroup="Input" />
&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnCancel" runat="server" Text="Quay lại" Width="80px" OnClick="btnCancel_Click" />
<asp:RequiredFieldValidator ID="rfvTitle" runat="server" SetFocusOnError="true" ControlToValidate="txtTitle"
    Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvInitContent" runat="server" SetFocusOnError="true"
    ControlToValidate="txtInitContent" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>

    <asp:RegularExpressionValidator ID="revPriceFrom" runat="server" ControlToValidate="txtPriceFrom"
    Display="None" ValidationGroup="Input" Text="*" ValidationExpression="[0-9]*"></asp:RegularExpressionValidator>
    <asp:RegularExpressionValidator ID="revPriceFromTo" runat="server" ControlToValidate="txtPriceFromTo"
    Display="None" ValidationGroup="Input" Text="*" ValidationExpression="[0-9]*"></asp:RegularExpressionValidator>
<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server"
    ValidationGroup="Input" ShowSummary="False" />
